前端框架。学习笔记。
npm 和 cnpm 和 项目初始化
https://www.runoob.com/vue2/vue-install.html
Vue 中的报错
vue的eslint报错的解决方法
在config目录下的index.js文件中将useEslint: true,改为useEslint: false,即可:
conf 目录
index.js 详解
1 | dev: { |
指令
v-bind:class
下面的语法表示 active 这个 class 存在与否将取决于数据属性 isActive1
<div v-bind:class="{ active: isActive }"></div>
new Vue()
1 | data: function() { |
其他
存储localStorage1
window.localStorage.setItem(name, content);
常用的组件
axios
ajaxtoast
提示层 动画element-ui